package view;

import javax.swing.JPanel;
import java.awt.FlowLayout;
import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JTextField;

public class ClientPanel extends JPanel {
	private JTextField cNameTextField;
	private JTextField cAddressTxtField;

	public ClientPanel() {
		setLayout(new GridLayout(1, 0, 20, 0));
		
		JLabel cNameLabel = new JLabel("Cient name");
		add(cNameLabel);
		
		cNameTextField = new JTextField();
		add(cNameTextField);
		cNameTextField.setColumns(10);
		
		JLabel cAddressLabel = new JLabel("client address");
		add(cAddressLabel);
		
		cAddressTxtField = new JTextField();
		add(cAddressTxtField);
		cAddressTxtField.setColumns(10);

	}
	
	public String getcName() {
		return cNameTextField.getText();
	}

	public String getcAddress() {
		return cAddressTxtField.getText();
	}

}
